package fox.framework.rpc.context;


/**
 * @author cuichao
 * @Description: DefaultRpcApplicationContext
 * @Date: create in 2021/1/28 15:51
 */
public class DefaultRpcApplicationContext extends AbstractRpcApplicationContext {

    private final MappedRegisteredRpcObjectFactory context = new MappedRegisteredRpcObjectFactory();
    private final RpcApplicationConfigurer configurer;

    public DefaultRpcApplicationContext(RpcApplicationConfigurer configurer) {
        this.configurer = configurer;
    }

    @Override
    protected RpcApplicationConfigurer getRpcApplicationConfigure() {
        return configurer;
    }

    @Override
    protected RpcDefinitionRegister getRpcDefinitionRegister() {
        return context;
    }

    @Override
    public ConfigurableRegisteredRpcObjectFactory getObjectFactory() {
        return context;
    }


}
